package com.lin.chapter18;

public class zhanYun {
	public static void main(String[] args) {
		System.out.println("--------第一个---------");
		Context context = new Context(new BackDoor());
		context.operate();
		System.out.println("--------第二个---------");
		context = new Context(new GivenGreenLight());
		context.operate();
		System.out.println("--------第三个---------");
		context = new Context(new BlockEnemy());
		context.operate();
	}
}
